<?php
class oauth_api_session extends system_session_namespace {
		
	public function __construct($namespance = 'OAUTH') {
		parent::__construct($namespance);
	}
	/**
	 * @return oauth_api_session
	 */
	public function setState($state) {
		$this->state = $state;
		return $this;
	}
	public function getState() {
		return $this->state;
	}
	/**
	 * @return oauth_api_session
	 */
	public function setCallback($callback) {
		$this->callback = $callback;
		return $this;
	}
	public function getCallback() {
		return $this->callback;
	}	

	/**
	 * @returnoauth_api_session
	 */
	public function setToken($oauth) {
		$this->token = $oauth;
		return $this;
	}
	
	public function getToken() {
		return $this->token;
	}

	/**
	 * @return oauth_api_session
	 */
	public function clean() {
		//system_session::namespaceUnset('OAUTH');
		unset($this->callback);
		unset($this->state);
		unset($this->oauth);
		return $this;
	}

}
